<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<link rel="stylesheet" type="text/css" href="<c:url value='/css/courseLeft.css'/>" />


<div class="class-list-title">
	班级列表&nbsp;
	<shiro:hasRole name="teacher">
		<button type="button" class="btn btn-primary" id="new-class-btn" style="box-shadow:2px 2px 2px #57748c">创建班级</button>
	</shiro:hasRole>
</div>
<div class="class-list">
	
</div>
<!-- 课程描述 -->
<div class="course-info-desc">
	<div id="description"></div>
</div>

<div id="new-class">
	<%@include file="../courseNewClass.jsp"%>
</div>

<script>
$(function(){
	$("#new-class-btn").click(function(){
		layer.open({
			type: 1,
			title: '新建班级',
			fixed: false, //不固定
			maxmin: true,
			closeBtn: 1,
			area: ['80rem', '40rem'],
			offset: '-230px',
			content: $("#new-class"),
			end: function() {
				window.location.reload();
            }
		});
	});
});
</script>